package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_house")
@ApiModel(value = "House对象", description = "")
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value ="房屋表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value ="房屋编号")
    @TableField("house_num")
    private String houseNum;

    @ApiModelProperty(value ="房屋名称")
    @TableField("house_name")
    private String houseName;

    @ApiModelProperty(value ="房屋类型:0：住宅，1：出租房")
    @TableField("house_type")
    private Integer houseType;

    @ApiModelProperty(value ="房屋面积")
    @TableField("house_area")
    private Double houseArea;

    @ApiModelProperty(value ="房型")
    @TableField("room_type")
    private String roomType;

    @ApiModelProperty(value ="房屋位置")
    @TableField("house_address")
    private String houseAddress;

    @ApiModelProperty(value ="房屋产权人")
    @TableField("house_owner")
    private String houseOwner;

//   业主要获取他自己名下的所有房产，所以需要在房产表里存一个业主独有的字段（在数据库中不会改变的的字段）
//    @ApiModelProperty(value ="房屋产权人的id")
//    @TableField("owner_id")
//    private Integer ownerId;

    @ApiModelProperty(value ="状态 (0:空值，1:已住人)")
    @TableField("state")
    private Integer state;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer deleted;


}
